package jyj.springmvc.learning.service.impl;

import jyj.springmvc.learning.dao.UserDao;
import jyj.springmvc.learning.entity.User;
import jyj.springmvc.learning.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 老顽固小可爱
 * @Date 2022/12/12 11:03
 * @Version 1.0
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User getUserByUserName(String userName) {
        return userDao.getUserByUserName(userName);
    }
}
